package com.aloha.boot01.controller;

import com.aloha.boot01.domain.User;
import org.springframework.web.bind.annotation.*;

import java.util.Map;


/**
 * @author zhdai
 * @date 2023/11/7 10:19
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping("/list")
    public Object list(User user) {
        user.getIds().forEach(System.out::println);
        return user.getIds();
    }

    @PostMapping("/json")
    public void json(@RequestBody Map<String, Object> json){
        System.out.println(json);
    }
}
